php remove cookie

54

php remove cookie -

if (isset($_COOKIE['key'])) {
    unset($_COOKIE['key']);
    setcookie('key', '', time() - 3600, '/'); // empty value and old timestamp
}

remove cookies php -

unset($_COOKIE['hello']);

Comments

Submit
0 Comments